#{extends 'template/main.html' /}
#{set title:'Inserir' /}

	#{ifErrors}
       <div class="alert alert-danger">Campo(s) Obrigatório(s) não preenchido(s).</div>
    #{/ifErrors}
<form id="meu_form" class="form-horizontal" action="@{Nutricionistas.cadastrar_nutricionista()}">
	
<fieldset>
<legend>Cadastro Nutricionista</legend>
  <div class="control-group">
    <label class="control-label">Nome</label>
    <div class="controls">
      <input class="input-xlarge" type="text" name="nutricionista.nome"  placeholder="Nome Completo" value="${flash['nutricionista.nome']}"  >    
       <span class="error">#{error 'nutricionista.nome' /}</span>
    
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" >CPF</label>
    <div class="controls">
      <input class="input-xlarge" type="text" name="nutricionista.cpf" placeholder="CPF" value="${flash['nutricionista.cpf']}"  >
      <span class="error">#{error 'nutricionista.cpf' /}</span>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" >Telefone</label>
    <div class="controls">
      <input class="input-xlarge" type="text" name="nutricionista.telefone" placeholder="Telefone" value="${flash['nutricionista.telefone']}" >
      <span class="error">#{error 'nutricionista.telefone' /}</span>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" >Celular</label>
    <div class="controls">
      <input class="input-xlarge" type="text" name="nutricionista.celular" placeholder="Celular" value="${flash['nutricionista.celular']}" >
      <span class="error">#{error 'nutricionista.celular' /}</span>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" >Email</label>
    <div class="controls">
      <input class="input-xlarge" type="text" name="nutricionista.email"  placeholder="Email" value="${flash['nutricionista.email']}"  >
      <span class="error">#{error 'nutricionista.email' /}</span>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" >CRN</label>
    <div class="controls">
      <input  class="input-xlarge" type="text" name="nutricionista.crn" placeholder="CRN" value="${flash['nutricionista.crn']}"  >
      <span class="error">#{error 'nutricionista.crn' /}</span>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" >Login</label>
    <div class="controls">
      <input class="input-xlarge" type="text" name="nutricionista.login" placeholder="Login" >
      <span class="error">#{error 'nutricionista.login' /}</span>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" >Senha</label>
    <div class="controls">
      <input class="input-xlarge" type="text" name="nutricionista.senha" placeholder="Senha" >
      <span class="error">#{error 'nutricionista.senha' /}</span>
    </div>
  </div>
  <div class="control-group">
    <div class="controls">    
      <button type="submit" class="btn btn-success">Salvar</button>
      <a href="@{Application.index()}" class="btn">Cancelar</a>
    </div>
  </div>
 
  </fieldset>
</form>
